home *** CD-ROM | disk | other *** search
/ SGI Hot Mix 14 / Hot Mix 14.iso / .all / bin / Game / HotMixPuzzle.java (.txt) < prev    next >
Text File  |  1996-07-23  |  699b  |  24 lines

  1. import java.awt.*;
  2. import java.util.*;
  3. import java.applet.*;
  4.  
  5. public class HotMixPuzzle extends Applet implements Runnable {
  6.   private Image image;
  7.   private AudioClip scrambleClip, solvedClip, moveClip;
  8.  
  9.     public synchronized void run() {
  10.     }
  11.  
  12.   public void init() {
  13.     image = getImage (getDocumentBase(), getParameter("image"));
  14.     scrambleClip = getAudioClip (getDocumentBase(), getParameter("scramble"));
  15.     solvedClip   = getAudioClip (getDocumentBase(), getParameter("solved"));
  16.     moveClip     = getAudioClip (getDocumentBase(), getParameter("move"));
  17.     setLayout(new GridLayout(1,0));
  18.     add(new SlidePuzzle(4, 4, image, 4, 4, 5,
  19.             scrambleClip, solvedClip, moveClip));
  20.   }
  21.  
  22. }
  23.  
  24.